package com.corpgovernment.organization.vo;

import com.corpgovernment.api.organization.model.passenger.PassengerVo;
import com.ctrip.corp.obt.generic.security.annotation.SecurityEntity;
import lombok.Data;

import java.util.List;

@Data
public class GetPassengerResponseVO {

	/**
	 * 可选出行人
	 */
	@SecurityEntity
	private List<PassengerVo> plist;
	/**
	 * 是否可以添加出行人
	 */
	private Boolean showAdd;

	/**
	 * 预定时是否可编辑出行人姓名
	 */
	private Boolean nameEditDuringBooking;

    /**
     * 是否可为非员工代订
     */
	private Boolean bookForNonEmp;

	public static GetPassengerResponseVO create(List<PassengerVo> passengerList, Boolean showAdd) {
		GetPassengerResponseVO response = new GetPassengerResponseVO();
		response.setPlist(passengerList);
		response.setShowAdd(showAdd);
		return response;
	}

	public static GetPassengerResponseVO createV2(List<PassengerVo> passengerList, Boolean showAdd, boolean bookForNonEmp){
        GetPassengerResponseVO response = new GetPassengerResponseVO();
        response.setPlist(passengerList);
        response.setShowAdd(showAdd);
        response.setBookForNonEmp(bookForNonEmp);
        return response;
    }
}
